package com.aiolos.springboot.stepbystep.error;

/**
 * 错误信息类ErrorInfo，用于封装错误信息
 */
public class ErrorInfo<T> {

    public static final Integer ERROR = 100;

    //错误码
    private Integer errorCode;

    //错误信息
    private String errorMessage;

    //发生错误的Url
    private String errorUrl;

    private T data;

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public String getErrorUrl() {
        return errorUrl;
    }

    public void setErrorUrl(String errorUrl) {
        this.errorUrl = errorUrl;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
